package com.turbofan.service.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="service-provider" )
public interface UserApi {

    @RequestMapping("query")
    User query(@RequestParam("username") String username,@RequestParam("password")String password);
    
    @PostMapping("create")
    String create(@RequestBody User user);
}
